package state;

/**
 * @author Koizumi Sinya
 * @date 2018/04/01. 17:26
 * @edithor
 * @date
 */
public class TvStateControl {
    private TvState tvState;

    public void setTvState(TvState tvState) {
        this.tvState = tvState;
    }

    public void powerOn() {
        setTvState(new PowerOnState());
        tvState.turnOn();
    }

    public void powerOff() {
        setTvState(new PowerOffState());
        tvState.turnOff();
    }

    public void preChannel() {
        tvState.preChannel();
    }

    public void nextChannel() {
        tvState.nextChannel();
    }

    public void turnOn() {
        tvState.turnOn();
    }

    public void turnOff() {
        tvState.turnOff();
    }
}
